package com.ncucoder.dpt.observer;

/**
 * @author <a href="https://edit.ncucoder.com">hsowan</a>
 * @since 2018-12-20 20:25
 */
public class Test {
    public static void main(String[] args) {
        Subject subject = new Subject();

        new HexaObserver(subject);
        new OctalObserver(subject);
        new BinaryObserver(subject);

        System.out.println("First state change: 15");
        subject.setState(15);
        System.out.println("Second state change: 10");
        subject.setState(10);
    }
}
